package com.boot.test.impl;

import com.boot.test.dao.TuserDao;
import com.boot.test.entity.Tuser;
import com.boot.test.service.TuserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TuserServiceImpl implements TuserService {

    @Autowired
    private TuserDao tuserDao;

    @Override
    public Tuser saveEntity(Tuser user) {
        tuserDao.save(user);
        return user;
    }

    @Override
    public Tuser findByAccount(String account) {
        return tuserDao.findByAccount(account);
    }

}
